import { ScrollView, View, Text, Image } from '@tarojs/components';
import React, { Component } from 'react';
import Taro, { getCurrentInstance } from '@tarojs/taro';
import { connect } from 'react-redux';
import './index.less';
import * as T from './types';
import actions from './actions';
import { store2Props } from './selectors';
import Blank from '@/pages/common/blank';
import WMLoading from '@/pages/common/loading';
import { WMkit } from 'wmkit';
import youImg from '@/assets/image/my/you.png'

actions().actions.loadReducer();
// @ts-ignore
@connect<Partial<T.IProps>, any>(store2Props, actions)
export default class Index extends Component<Partial<T.IProps>, any> {
  constructor(props) {
    super(props);
    this.state = {};
  }

  componentDidMount() { }

  componentDidShow() { }

  componentWillUnmount() {
    this.props.actions.clean();
  }

  render() {
    return (
      <View className="packageCDoorSetting">
        <View className='f7'></View>
        <View className='wrap'
          onClick={() => {
            Taro.navigateTo({
              url: '/pages/package-C/door-setting/agreement/index',
            });
          }}>
          <View className='row'>
            <Text className='textStyle'>信息保密协议</Text>
          </View>
          <Image className='right' src={youImg} mode="widthFix" />
        </View>
        <View className='wrap'
          onClick={() => {
            Taro.navigateTo({
              url: '/pages/package-C/door-setting/require/index',
            });
          }}>
          <View className='row'>
            <Text className='textStyle'>人脸照片要求</Text>
          </View>
          <Image className='right' src={youImg} mode="widthFix" />
        </View>
      </View>
    );
  }
}
